package com.htfyun.eink.pw.configs;

import com.htfyun.eink.pw.draw.cache.CacheHelper;

public class ConfigCache {

    /**
     * {@link com.htfyun.eink.pw.draw.cache.PathCachePathInfo#rectsForCheck} 里 rect 高宽最小值.<br>
     * 某些 shape pen 不用这个
     */
    public static int RECT_CHECK_MIN_SIZE = 30;

    /**
     * 是否 使能 cache
     */
    private boolean enabled = true;

    public boolean isEnabled() {
        return enabled;
    }

    public String cacheDir;

    public ConfigCache setEnabled(boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    public String getCacheDir() {
        return this.cacheDir;
    }

    public ConfigCache setCacheDir(String cacheDir) {
        this.cacheDir = cacheDir;
        return this;
    }

}
